package org.zachary.agent.domain.aggregate_model.user;

import jakarta.persistence.Embeddable;

import java.util.Objects;

@Embeddable
public class ProfilePicture {
    private String profilePicture;
    public ProfilePicture() {}
    public ProfilePicture(final String value) {
        this.profilePicture = value;
    }
    public String getValue() {
        return profilePicture;
    }
    public String toString(){
        return profilePicture;
    }
    public boolean equals(Object o){
        if(this == o) return true;
        if(this.getClass() != o.getClass()) return false;
        ProfilePicture that = (ProfilePicture) o;
        return Objects.equals(profilePicture, that.profilePicture);
    }
}
